package com.xuecheng.learning.feignclient;

import com.xuecheng.content.model.po.Teachplan;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value="content-api",path="/content",contextId="teachplan",
fallbackFactory=TeachplanClientFactory.class)
@RequestMapping("/teachplan")
public interface TeachplanClient {
    @GetMapping("/{id}")
    Teachplan getById(@PathVariable("id")Long id);
}
